package com.xinqi.modules.sys.log.client;

import com.xinqi.common.base.constants.ServiceNameConstants;
import com.xinqi.common.base.response.R;
import com.xinqi.modules.sys.log.factory.AsyncLogFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @Author：yyzhen
 * @Package：com.xinqi.modules.sys.user.user.client
 * @Project：com.xinqi.-Cloud-Plus
 * @name：UserLoginLogClient
 * @Date：2023/5/17 15:16
 * @Filename：UserLoginLogClient
 */
@FeignClient(contextId = "asyncLogClient", value = ServiceNameConstants.XQ_SYS, fallbackFactory = AsyncLogFactory.class)
public interface AsyncLogClient {

    @PostMapping("/inner/async-log/saveAsyncLog")
    R<Long> saveAsyncLog(@RequestBody Map<String, Object> log);

}
